import { ref } from 'vue';
import { defineStore } from 'pinia';

// 使用setup模式定义
export const mapStateStore = defineStore('mapStateStore', () => {
  const isMapLoaded = ref<boolean>(false);

  function updateIsMapLoaded(payload:boolean) {
    isMapLoaded.value = payload;
  }
  return { isMapLoaded, updateIsMapLoaded };
});
